package tt.dz.order.vo;

import java.text.ParseException;
import java.util.Date;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import tt.dz.order.util.ThreadSafeDateFormat;

/**
 * 
 * @name 订单查询请求队列
 * @author Anson
 * @version 1.0
 * @summary
 * @desc
 *
 */
public class QueryOrderResportVO {

	// 消费开始日期字符串
	private String startStr;
	// 消费开始日期
	private Date startDate;
	// 消费结束日期字符串
	private String endStr;
	// 消费结束日期
	private Date endDate;
	// 服务类型
	private String serviceNo;
	// 当前卡号
	private String cardNo;
	// 当前订单号
	private String orderNo;
	// 订单支付状态
	private Integer status;
	private String merchantCode;
	private String cardTypeNo;
	private String serviceStationNo;
	private String equipmentNo;

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

    public String getCardTypeNo() {
        return cardTypeNo;
    }

    public void setCardTypeNo(String cardTypeNo) {
        this.cardTypeNo = cardTypeNo;
    }

    public String getServiceStationNo() {
        return serviceStationNo;
    }

    public void setServiceStationNo(String serviceStationNo) {
        this.serviceStationNo = serviceStationNo;
    }

    public String getEquipmentNo() {
        return equipmentNo;
    }

    public void setEquipmentNo(String equipmentNo) {
        this.equipmentNo = equipmentNo;
    }

    public QueryOrderResportVO() {
		super();
	}

	public String getStartStr() {
		return startStr;
	}

	public void setStartStr(String startStr) {
		this.startStr = startStr;
		if (StringUtils.isNotBlank(startStr)) {
			try {
				startDate = ThreadSafeDateFormat.parse(startStr, ThreadSafeDateFormat.DATE_FMT);
			} catch (ParseException e) {
			}
		}
	}

	public String getEndStr() {
		return endStr;
	}

	public void setEndStr(String endStr) {
		this.endStr = endStr;
		if (StringUtils.isNotBlank(endStr)) {
			try {
				endDate = ThreadSafeDateFormat.parse(endStr, ThreadSafeDateFormat.DATE_FMT);
			} catch (ParseException e) {
			}
		}
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getServiceNo() {
		return serviceNo;
	}

	public void setServiceNo(String serviceNo) {
		this.serviceNo = serviceNo;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}
}
